import math
n = int(input("请输入一个整数:"))
for i in range(1,n):
    n *=i
print(n)